package org.yaonan.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.yaonan.bean.YnFriend;
import org.yaonan.bean.YnFriendExample;
import org.yaonan.bean.YnUser;

public interface YnFriendMapper {
    int countByExample(YnFriendExample example);

    int deleteByExample(YnFriendExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(YnFriend record);

    int insertSelective(YnFriend record);

    List<YnFriend> selectByExample(YnFriendExample example);

    YnFriend selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") YnFriend record, @Param("example") YnFriendExample example);

    int updateByExample(@Param("record") YnFriend record, @Param("example") YnFriendExample example);

    int updateByPrimaryKeySelective(YnFriend record);

    int updateByPrimaryKey(YnFriend record);
    
    List<YnUser> selectFriendsByPage(YnUser ynUser);
    
    void deleteFriend(Integer userid1, Integer userid2);
    
    List<YnUser> selectPeopleByPage(YnUser ynUser);
    
    int selectCountFriend(Integer userid);
}